package com.example.service.impl;

import com.example.dao.RoleMapper;
import com.example.pojo.po.Role;
import com.example.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper mapper;
    public List<Role> findAllRoles() {

        List<Role> list = mapper.findAll();
        return list;
    }
}
